
class WashMachine {
    public String brand;
    public String type;

    public double weight;
    public double length;
    public double width;
    public double height;
    public String color;

    public void washClothes() {
        System.out.println("洗衣功能");
    }
    public void dryClothes() {
        System.out.println("脱水功能");
    }
    public void setTime() {
        System.out.println("定时功能");
    }
}

//Dog类
class petDog {
    public String name;//名字
    public String color;//颜色

    public void barks() {
        System.out.println(name + ":汪汪汪~~~");
    }
    public void wag() {
        System.out.println(name + ":摇尾巴~~~");
    }
}

public class Class1 {

}
